package com.kaifamiao.www.demo.do0801.factory;

public class Test {
    public static void main(String[] args) {
        HumanFactory factory = new HumanFactory();
        Human man = factory.createHuman(2);
        Human man1 = factory.createHuman(0);
        man.printColor();
        man.talk();
        man1.talk();
        man1.printColor();
    }
}
